package com.jinsi.service.yrf.iml;

import com.jinsi.constant.YrfConstant;
import com.jinsi.mapper.yrf.FabulousCensusMapper;
import com.jinsi.pojo.SyFabsCollectCensus;
import com.jinsi.service.yrf.FabulousCensusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 86185
 */
@Service
@Transactional
public class FabulousCensusServiceImpl implements FabulousCensusService {

    @Autowired
    private FabulousCensusMapper fabulousCensusMapper;
    @Override
    public List<SyFabsCollectCensus> getCommTab() {
        return fabulousCensusMapper.getCommTab(YrfConstant.DEPT_PARENT,YrfConstant.FAB_COLL_CATEGORY_ONE,
                YrfConstant.COMM_CURR_CATEGORY_ONE,YrfConstant.FAB_COLL_CATEGORY_TWO);
    }

    @Override
    public List<SyFabsCollectCensus> getCurrTab() {
        return fabulousCensusMapper.getCurrTab(YrfConstant.DEPT_PARENT,YrfConstant.FAB_COLL_CATEGORY_ONE,
                YrfConstant.COMM_CURR_CATEGORY_TWO,YrfConstant.FAB_COLL_CATEGORY_TWO);
    }

}
